package com.itheima.service.mongo;

import com.itheima.vo.PageBeanVo;

public interface FriendService {

    void addContact(Long userId,Long friendId);

    PageBeanVo findContactsByPage(Long userId,Integer pageNum,Integer pageSize);

    //删除好友信息
    void delete(Long userId, Long friendId);

    //按id查询好友信息
    Boolean findByUserIdAndFriendId(Long userId,Long friendId);

    PageBeanVo contactsListByUserId(Integer page, Integer pagesize, Long id);


    //统计好友数量
    Integer count(Long id);

    Boolean isFriend(Long id, Long loveId);

    void removeFriend(Long id, Long loveId);

    void removeContacts(Long userId, Long likeUserId);

}
